export const saveFilePicker = async (content: string, filename: string) => {
  const writeHandle = await window.showSaveFilePicker({
    suggestedName: filename,
  });

  const writableStream = await writeHandle.createWritable();

  await writableStream.write(content);
  await writableStream.close();
};

export const directoryPicker = async () => {
  const directoryHandle = await window.showDirectoryPicker();
  window.showOpenFilePicker();
  const newDirectoryHandle = await directoryHandle.getDirectoryHandle(`123`, {
    create: true,
  });
};
